import './assets/main.scss'
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Router  from '@/router'
import {createPinia} from 'pinia'
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import piniaPluginPersistence from 'pinia-plugin-persistedstate';
import "@/access"; // 全局路由跳转权限检查



const app =createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistence) //持久化组件
app.use(pinia)
app.use(Router)
app.use(ElementPlus,{locale:zhCn})
app.mount('#app')
